package com.company.Shangji;

public class Mythread extends Thread{
    @Override
    public void run() {
        try {
            for (int i = 1; i < 8; i++) {
                Thread.sleep(1000);
                System.out.println(getName()+":第"+i+"箱");
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
